﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Wz.Enum;

namespace Wz.Entities
{
    /// <summary>
    /// 审核表
    /// </summary>
    public class Audit : CreationAuditedAggregateRoot<Guid>
    {
        // <summary>
        /// 业务编号ID（对应例如合同的主键ID）
        /// </summary>
        public Guid BusinessId { get; private set; }

        /// <summary>
        /// 业务类别编号ID
        /// </summary>
        public BusinessType BusinessTypeCode { get; private set; }

        /// <summary>
        /// 最终审核结果
        /// </summary>
        public AuditState State { get; private set; }

        /// <summary>
        /// 最后审核结束时间
        /// </summary>
        public DateTime? AuditTime { get; private set; }

        /// <summary>
        /// 审批人（最近的那个审核人）
        /// </summary>
        public string AuditPersonName { get; set; }

        /// <summary>
        /// 审核日志
        /// </summary>
        public List<AuditLog> AuditLogs { get; private set; }
    }
}
